import request from '@/utils/request'

// 查询生产加工单列表
export function listProduce(query) {
  return request({
    url: '/dy/produce/list',
    method: 'get',
    params: query
  })
}

// 查询生产加工单列表不分页
export function queryProduce(query) {
  return request({
    url: '/dy/produce/query',
    method: 'get',
    params: query
  })
}

// 查询生产加工单详细
export function getProduce(produceId) {
  return request({
    url: '/dy/produce/' + produceId,
    method: 'get'
  })
}

// 新增生产加工单
export function addProduce(data) {
  return request({
    url: '/dy/produce',
    method: 'post',
    data: data
  })
}

// 修改生产加工单
export function updateProduce(data) {
  return request({
    url: '/dy/produce',
    method: 'put',
    data: data
  })
}

// 删除生产加工单
export function delProduce(produceId) {
  return request({
    url: '/dy/produce/' + produceId,
    method: 'delete'
  })
}

// 导出生产加工单
export function exportProduce(query) {
  return request({
    url: '/dy/produce/export',
    method: 'get',
    params: query
  })
}